package com.black.play.entity;

/**
 * @author ylx
 */
public class SudokuBoard
{
    private int[][] board;

    public SudokuBoard(int[][] board)
    {
        this.board = board;
    }

    public int[][] getBoard()
    {
        return board;
    }

    public void setBoard(int[][] board)
    {
        this.board = board;
    }

    @Override
    public String toString()
    {
        StringBuilder sb = new StringBuilder();
        for (int[] row : board)
        {
            for (int num : row)
            {
                sb.append(num).append("\t");
            }
            sb.append("\n");
        }
        return sb.toString();
    }

    public void printBoard(){
        System.out.println(this);
    }
}
